package ch.drystayle.jghost.common;

public class Constants {
	public static char W3GS_HEADER_CONSTANT = 247;
	
	public static char PLAYERLEAVE_DISCONNECT = 1;
	public static char PLAYERLEAVE_LOST = 7;
	public static char PLAYERLEAVE_LOSTBUILDINGS = 8;
	public static char PLAYERLEAVE_WON = 9;
	public static char PLAYERLEAVE_DRAW = 10;
	public static char PLAYERLEAVE_OBSERVER = 11;
	public static char PLAYERLEAVE_LOBBY = 13;
	
	public static char GAME_NONE = 0; // this case isn't part of the protocol, it's for internal use only
	public static char GAME_FULL = 2;
	public static char GAME_PUBLIC = 16;
	public static char GAME_PRIVATE = 17;
	
	public static final char SLOTSTATUS_OPEN = 0;
	public static final char SLOTSTATUS_CLOSED = 1;
	public static final char SLOTSTATUS_OCCUPIED = 2;

	public static final char SLOTRACE_HUMAN = 1;
	public static final char SLOTRACE_ORC = 2;
	public static final char SLOTRACE_NIGHTELF = 4;
	public static final char SLOTRACE_UNDEAD = 8;
	public static final char SLOTRACE_RANDOM = 32;
	public static final char SLOTRACE_FIXED = 64;

	public static final char SLOTCOMP_EASY = 0;
	public static final char SLOTCOMP_NORMAL = 1;
	public static final char SLOTCOMP_HARD = 2;
	
	public static char GAMETYPE_CUSTOM = 1;
	public static char GAMETYPE_BLIZZARD = 9;

	public static char REJECTJOIN_FULL = 9;
	public static char REJECTJOIN_STARTED = 10;
	public static char REJECTJOIN_WRONGPASSWORD = 27;
	
	public static final int MAPSPEED_SLOW = 1;
	public static final int MAPSPEED_NORMAL = 2;
	public static final int MAPSPEED_FAST = 3;

	public static final int MAPVIS_HIDETERRAIN = 1;
	public static final int MAPVIS_EXPLORED = 2;
	public static final int MAPVIS_ALWAYSVISIBLE = 3;
	public static final int MAPVIS_DEFAULT = 4;

	public static final int MAPOBS_NONE = 1;
	public static final int MAPOBS_ONDEFEAT = 2;
	public static final int MAPOBS_ALLOWED = 3;
	public static final int MAPOBS_REFEREES = 4;

	public static final int MAPFLAG_TEAMSTOGETHER = 1;
	public static final int MAPFLAG_FIXEDTEAMS = 2;
	public static final int MAPFLAG_UNITSHARE = 4;
	public static final int MAPFLAG_RANDOMHERO = 8;
	public static final int MAPFLAG_RANDOMRACES = 16;
	
	public static final char BNET_HEADER_CONSTANT = 255;
}
